cmake_minimum_required(VERSION 3.30)
project(n006basicknowledge C)

set(CMAKE_C_STANDARD 11)


#2.编译可执行程序
# 添加可执行文件
add_executable(
        n006basicknowledge
        #main.c
        l029functionuse.c
)
# 链接库
#target_link_libraries(MyApp MyLib)
target_link_libraries(n006basicknowledge MyLib)

#3.创建库
# 创建静态库
add_library(MyLib STATIC library.c
        test.c test1.c
        l029functionstate.c
)
#添加动态库
#add_library(n006basicknowledge SHARED library.c test.c test1.c )
